package com.varian.system.dto;

import cn.hutool.core.date.DatePattern;
import com.varian.mybatis.base.BasePage;
import com.varian.tool.model.TaskStatus;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

/**
 * @author ben
 * @since 2024/12/27
 */
@Data
@Schema(title = "任务分页查询参数")
public class SysTaskPageDTO extends BasePage {

    @Schema(title = "关键词")
    private String keyword;

    @Schema(title = "任务状态 0:未执行 1:执行中 2:已完成 3:失败")
    private TaskStatus taskStatus;

    @Schema(title = "开始时间")
    @DateTimeFormat(pattern = DatePattern.NORM_DATE_PATTERN)
    private LocalDate startTime;

    @Schema(title = "结束时间")
    @DateTimeFormat(pattern = DatePattern.NORM_DATE_PATTERN)
    private LocalDate endTime;

}
